class CreateTransacoes < ActiveRecord::Migration
  def change
    create_table :transacoes do |t|
      t.date :data
      t.decimal :valor, :precision => 10, :scale => 2
      t.string :observacao
      t.references :conta
      t.integer :tipo

      t.timestamps
    end
    add_index :transacoes, :conta_id
  end
end
